package com.oha.laporrayelchurro.commons;

/**
 * 
 * @author oscarha
 *
 */
public class Util {

	/**
	 * 
	 * @param str
	 * @return
	 */
	public static Long toLong(String str){
		Long val = null;
		if(str!=null && str.trim().length()>0){
			try{
				val = new Long(str.trim());
			}catch(NumberFormatException nfe){
				val=null;
			}
		}
		return val;
	}
	
}
